Codebook  initialization