Added a reverse list function, fixed a bug in the copy constructor