generating the list of all binary string of length N working