Changed the RejectedTakeoff algorithm and added test cases.