implemented the array of bits using 32bit figures. Tested and working.