Delete hash.c, modify material_value.c

Delete hash.c: It is not needed, as confirmed by ZirconiumX. Modify
material_value.c as advised by Jose Maria Velasco (thanks!)