add reverseArray and reverseArrayInPlace methods