Added list reversal code to ascending list implemention