Changed FX frontier algorithm to more stable bisection method + several
minor adjustments