A Growing Self-Organizing Network for Reconstructing Curves and Surfaces