calculate the md5 hash of a given file