Subsets and Compositions with bit shift operations