Updated to latest dynamic_freeze with optimized prefixsum