Fast semi-algebraic clustering for efficient system identification and geometric scene understanding