public Comparator<SearchNode> getComparator(){
		return new Comparator<SearchNode>() {
			public int compare(SearchNode n1, SearchNode n2){
				if(n1.getGPlusH() < n2.getGPlusH()) return -1;
				else if (n1.getGPlusH() > n2.getGPlusH()) return 1;
				else if(n1.getGValue() > n2.getGValue() ) return -1;
				else if(n1.getGValue() < n2.getGValue() ) return 1;
				else if(n1.getNodeNum() < n2.getNodeNum()) return -1;
				else return 1;

			}
		};
	}