A modified version of Martos' algorithm for fractional program