add rotate method

just a small shorthand for rotating an array