Replaced numpy calls with blas in dual_gap