1. A = array of bitmaps, for example, A = [100011, 001111, 000101, 111001, 001111]
2. Filter, for example, F = [111, 101]
In A, filtering out those bitmaps whose three most significant digits(MSD) is not in the filter and keep the ordering, continue with above example, those bitmaps 100011, 111001 would be filtered out, and the result should be [001111, 000101, 001111].
I have try to use copy_if in Thrust, but I have no idea how to pass the filter list to the API.