Fixed reverseCol function to actually reverese the columns of any size cube