possibly done with matrix helper function
i think i finished row reduction