added a bugy implementation for array rotation which needs to be fixed