Added method to safely compare two vectors or two pairs of iterators with a supplied predicate
added operator== to BasicArray