creating bestInsertion() heuristic