Fix blas and zero-removal algorithm

gg