add vec return by pointer typemap
add function to calculate distance on twisted torus
Merge branch 'new-torus-analysis'