If you want results based on pairs of values (rather than triples), then you want a 2D array.
Usually, 2D arrays are just arrays of arrays. If you want to use Obj-C's NSArray object, then you'd just do something like this:
NSArray* yCoord1 = [NSArray arrayWithObjects:@"oneValue", @"secondValue", nil];
NSArray* yCoord2 = [NSArray arrayWithObject:@"thirdValue"];
NSArray* array = [NSArray arrayWithObjects:yCoord1,yCoord2,nil];
Then, to access the array:
NSUInteger xCoord = 0;
NSUInteger yCoord = 1;
[[array objectAtIndex:xCoord] objectAtIndex:yCoord]; //Result: @"secondValue"
It's also possible to use plain C arrays in this way; google "2D C arrays" for tons of tutorials if you'd prefer that.