Efficient algorithms for finding the centers of conics and quadrics in noisy data