adding find median and reverse to linked list