big messy update.  mapped segments now sorted by target coordinate instead of source and all changes that entails.  also mapped segments now clipped on target coordinates so that they ever overlap exactly or not at all