Algorithms for interpolation and localization in irregular 2D meshes