Changed array to use malloc to add dynaimc memory, added transpose and transposeBack functions, and added another array (temp) to hold transitions for transpose functions.