Fixed sLDA code so it passes Travis tests