Update lcs.java