BiDimRegression function

Calculates the bidimensional regression between two 2D configurations