Implemented the getFrontier method and altered the underlying data structure in StateSpace.groovy