private static String addLeadingZeros(String binaryNumber,int nbBits) {
		int len = binaryNumber.length();
		for (int i = 0; i < nbBits-len; i++) {
			binaryNumber = "0" + binaryNumber;
		}
		return binaryNumber;
	}