Added code for median quartile using generics, higher order and currying concepts