An efficient algorithm for the $\ell_{p}$ norm based metric nearness problem