Still need to prove it's O(n).