Bug still inplace, refactored LUdecomp and split into smaller routines - broke it.