implement list.reverse()