Added method for calculating single entropy