Clean up HistArray implementation