MatrixFilter - improved to accept negative and double values.