Added a sample implementation BasicHeuristicAlgorithm