HW4: write test results/tags into hmm_output.txt

Signed-off-by: unknown <zkk12345@gmail.com>