function to create a Z matrix for multi-level models
Merge branch 'master' of github.com:iamamutt/mejr