--- from: http://rosettacode.org/wiki/Heronian_triangles