matrix generation added and indent

Aside from random tables, some calculations and operations would be more
efficient when using a matrix. Random matrix generation added and tab
indentation was replaced with space indentation.