This function is still being debugged.

MSE does not decrease properly.