Attempt at faster interpolation algorithm