switch to immutablility
implementation change removes inheritance and adds count sketch