ViterbiBNC.java added for generic tagset