implemented head() method for array
implemented tail() method for array; modified rotate() method for array