public boolean[] repeatDecode(boolean[] bitsequence, int n) {
		boolean[] decodedBitsequence = new boolean[(int)Math.floor(bitsequence.length / n)];
		
		for (int i = 0; i < decodedBitsequence.length; i++) {
			int countTrue = 0;
			int countFalse = 0;
			
			for (int j = i*n; j < (i+1)*n; j++) {
				if (bitsequence[j]) {
					countTrue += 1;
				} else {
					countFalse += 1;
				}
			}
			
			decodedBitsequence[i] = (countTrue > countFalse) ? true : false;
		}
		
		return decodedBitsequence;
	}