initial c++ port.
rename to Segment class.
use epsilon for floating point.
const
add/test segment interpolation.