fixed up flood fill and added code to do a radius-limited flood around the border between two segments
added feature to calculate moments around merge point