Split dense.go into manipulation and arithmetic