Update hmm_util.c

writing rf comparison to file.