code cleanup
memory saved when computing partial matrices. implemented #2