Frontier class for exploration