An efficient algorithms using matrix methods /