Fix mis-adding test-case output into result_maps.txt.
Read rules from "rule.txt" instead of stdin.
Add Makefile to build/test easily.
Add printing outputs of rules as "result_output.txt".