added union and uniq array functions