change O(N) to O(n)
Merge pull request #325 from sumnous/patch-2

change O(N) to O(n)