added reverse() method to reversing lists