extracts dense matrix multiplication part out of f4rt
lots of work on build system