Dealing with the best attachment problem via heuristics