The companion object contains factory functions to create new instances with initialization.
Factory function to create an ArrayMatrix.