longShape implementation
test longShape equivalence