Min/max a.k.a {x,y}

I needed a min/max expression, so I wrote one. I'm not sure if my approach is the best one, but it seems to work for me. I know the use of short as a data type is unusual for Java, you might want to re-consider that. Sorry for being too lazy to write a Scala test case.