added triangle inequality error checking
added error checking for valid trapezoid