added benchmark and finished O(n) counting algorithm for heuristic.
added benchmark and finished O(n) counting algorithm for heuristic.

gandalf15/CS2521-ALGORITHMIC-PROBLEM-SOLVING,gandalf15/CS2521-ALGORITHMIC-PROBLEM-SOLVING,gandalf15/CS2521-ALGORITHMIC-PROBLEM-SOLVING