Update Grid.m

Now accounts for physical grid segments as well.