Implemented normalizeDensity

Signed-off-by: Dan Weinand <daniel.weinand@pomona.edu>