new generalized implementation of "chord length"
two pop initialization