Update HammingWeigth and codeRate, add pol2polvec and polvec2pol