boolean[] isKey = new boolean[maxKey + 1];