implement List.reverse using foldRight
Implement length using foldRight.