changed bilinear interpolation function. We aren't getting segmentation faults anymore.