Add recipe for calculating the length of a geometry.  Closes issue #40