fixed bug in comparable::pythagoras