There is an error in your algorithm

Hi Watson.

I found a huge mistake in your code.
So I pullrequested a test to give you a clue.

![original](http://media.giphy.com/media/mwVZF5WuBcGOc/original.gif)

See you,
Thomas.