implemented indexing on nsarray of strings and nsnumber

as described by the title