amir - optimizing further to know if isosceles by not comparing biggest and smallest sides