finished lu factor method and finding determinants