Integrate LMS into Scala version ==> MatMult(512), Vanilla: 16.669 sec, LMS: 2.165 sec (with all the backtrack).