Add contour feature 'length'
Bug fix: Junction coordinates were reversed