Commit first implementation of massMatrix in wbi (still untested)