Changes to HeuristicsOptimizer to make it more efficient
Changed subjectCount to objectCount in optimizers' exploration cost calculation.
Test to verify that the query order returned by Heuristics Optimizer is the same as Exploration optimizer.

The query orders should not necessarily be the same. In case of easily
bindable patterns, the order could possibly be different.