Adding reverse compositional algorithm

fixing weight in bilinear interpolation