lmatrix equality method added
test for data dimension checking
data dimension checking bug fixed
forward algorithm written but test not passed