* separate algorithms used and classes in RelativePosition and RelativeOrientation;
* correct some comment
* the algorithms are now static menbers of their respective classes