Fix segfault when positions are not 3 dimensional.
Merge pull request #82 from rmcgibbo/setLength

Fix segfault when positions are not 3 dimensional.