codeeval.com Road Trip commit. Added test cases to optimize code in the future.