added determinnt calculation to matrices. tested.