add distinctBy method and implement distinct in terms of distinctBy

add distinctBy method to Seq (move it from scala-reflect) and implement distinct in terms of distinctBy

review by @Ichoran 
Let's cache f(rest.head) so we don't have to evaluate twice?