thank you very much for the matrix-idea! I think it's very useful,especially in this case.Maybe we can do something with the command rref.
I am working on it.If u have any more ideas please tell me!
Keep up the good work ;-)