*Implemented swapXZ function
*Implemented swapYZ function