fix and improve dick weight enumerator polynomial