setTo2D

fun setTo2D()

Set to2d

Sets array to two dimensional. Replaces swap method to cater for additional dimensions.