add module planner

The module contains the planning algorithm.