construct function for array and matrix
Merge branch 'master' of https://github.com/pc-zhang/jspractice