removed compiler builin use
added error checking for MAX_NR_ATTR
added support for three classes of bigrams: all, even and odd