MatrixFilterStates function

FilterStates subclass for matrices