Added MinBy, MaxBy, MinByOrDefault and MaxByOrDefault methods and replaced calls of the style OrderBy[Descending]().First[OrDefault]() which is not as performant.
Merge pull request #5405 from RoosterDragon/min-max

Added MinBy, MaxBy, etc.