Refer to issue: https://github.com/danieldahan/algorithms/issues/2 to fix after this commit.