Added getL matrix and getU matrix function