fix initial layer flow

The commented problem was coming from elsewhere.
store segment length, fix flow bug

Fixes a bug in limitFlowGrowthRate(forward=false) with startPosition.
This also avoids lots of sqrt().