Update for latest rust.
Don't allocate in quad root.
Less allocation.
Get rid of pointless collect and all its allocations.
Just multiply instead of using pow(2).