implement basic Allocator template for math library
start implementing multidimensional matrix template