The grid constructor can now build out of a gen of pairs