Code

return boost::optional for second and penultimate points of SPCurve