Working MLR-BPSO implementation