Implementation of get(unsigned long i) function.