Fixed SecantSegment function, but isn't quite right...