Debugging code now on example. Algorithm seems correctly implemented but does not maximize F(q) (minimizes it instead somehow). Added method for computing RMSE and F(q).