Sqrt, ArrayPtr operator[], prefix sum on CPU