Changed the signature of the array access method to size_t instead of int