Comments and code corretions (made permanent the counting of degerenacy)