getElem i j m = fromMaybe (error "getElem: out of bound.") (safeGet i j m)
getElem i j m = fromMaybe (error "getElem: out of bound.") (safeGet i j m)
getElem i j m = fromMaybe (error "getElem: out of bound.") (safeGet i j m)