Array filtering using buckets. Allows infinite buckets, bucket size limit, keeps input order and discards unmatched elements.