Refactored volumetric data interpolation code
Updated version