Update LCSwithMatrix.java