Renamed quick_leftmost and quick_rightmost to quick_first and quick_last respectively