Critical Bit tree for k-dimensional or arbitrary length keys