Had some problems (read bugs) in my GNG Neural Network centering on the deletion of items from a vector when using shared pointers.  Having sorted these I created this example with many of the same elements.  It has a number of ugly elements at present, so the question is can they be improved?