Calculates the bidimensional regression between two 2D