added normalized entropy function which is between 0 and 1 and not dependent on base