add scalaz dependency and make LogNum a Semiring