truncate0 function

Truncate values in a matrix / vector to zero if they are below a certain threshold.