Made the functions to calculate IDW errors. Currently untested though.