Add assertion about NAN
Simple blas implementation
Add toSparse method