BPMF speedup and comments added to dense matrix and vector