Added different implementation of copy_atmost_n for random access iterators.