Rename P2P into point 2 point distance.
Move the readPositionVector function in helper file
Add point 2 point feature (position only).
Handling the case where J2 is plugged, but not J1.
The reference info could be moved out of the reference graph.

Since the reference is often constant and its dimension
is not mandatorily 1.