Remove unused functions
Use finalized types to eliminate virtual calls
Merge pull request #7 from kaihowl/pullrequest/dynamic_freeze

PrefixSum tuning