fixed bug on addElementAt; reverse list function functional