Console can now be used offline.
Added BeamSearch metaheuristic.

Added BeamSearch metaheuristic, plus a little code cleaning.