Added pseudocode for checking if ride-sharing is possible