https://www.wikitechy.com/technology/program-count-number-set-bits-big-array/
Program to count number of set bits in an (big) array