Quadratic shell clustering algorithms and the detection of second-degree curves