An Improved Fast Multipole Algorithm for Potential Fields on the Line