dinstinct values for multi dimensions arrays instead of unique array