added function lognormalized function to normalize probablities in log space, and then return them in probablity space