https://www.geeksforgeeks.org/copy-set-bits-in-a-range/