A simple automated planner written in C