categorical K=2 fix (the same type of implementation for K=2,K>2)

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/lava@1241 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
1.2.7.6

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/lava@1242 edb9625f-4e0d-4859-8d74-9fd3b1da38cb