find minimum entropy