implemented the cbegin and cend member functions of array