Ruby solution for skyline problem, see http://www.algorithmist.com/index.php/UVa_105