added make_array function
added type for extending TSize, and method to remove dimensions that has value of 1