Implemented a SIMD-friendly matrix and vector allocation scheme
Bug fixes