Speedup for 1thread/mat
debug single precision + cleanup