adding naive distinct algorithm to GroupByScan