Added Polarity lattice to scala project.
Added kinds to the scala representation.
Working on new IR.