code: public static int[] listToMap(int[] list) {
          list = pad(list);
          int[] bitMap = new int[(int)(list.length / WORD_LENGTH)];
          Arrays.fill(bitMap, 0);
          int j = -1;
          for (int i = 0; i < list.length; i++) {
              if (i % WORD_LENGTH == 0) {
                  j++;
              }
              bitMap[j] |= (list[i] << ((WORD_LENGTH - 1) - (i % WORD_LENGTH)));
          }
          return bitMap;
      }
docs: Builds a bit map from the given list. The list should values of 0 or 1s
  
  @param list
  @return