Test methods for closed property.
Added back equals method to vector.

Broke my tests a while back without realizing it. Also added hashCode()
method.
Fixed concurrent origin error.
Initial, untested algorithm.