Implemented trimmest intersection.