Added Queue struct for breadth-first expansion