fix for MatrixFactory
runtime optimization
tested and merged point2line metric