The implementation of some heuristic algorithms