fixed warning for 64bit support - misuse of int & NSNotFound

indexOfObject: returns NSUInteger, so for 64bit it will be a loosing conversion to int for the original version of code;
also, Xcode 6 gives a warning, that comparing int value with NSNotFound (for 64bit mode) will always be false.

using NSUInteger type for index var fixes the potential problem