Add method to turn bit array to bit string for easier output
Add main program body implementation.