The application of Cayley-Bacharach theorem to bivariate Lagrange interpolation