fixed histogram and spdt algorithm