I am in the middle of rewriting internal representation of PsMatrix type. Code does not compile at this moment