GPU implementation of visiting all subsets of objects