Matrix reduction function
First try of A(W) computing
Merge branch 'master' of github.com:mikhail-matrosov/wikigroups