rotate 2D arrat
encode and decode
reverse word