Updated Trapezoid.py and Triangle.py with cleaner, faster code.