An algorithm for bicriteria optimization based on the sensitivity function