Add one more test.

This test require 2 moves of data.
Improve solution by qnikst.

1. Code style fixes.
2. Drop GNU includes.
3. Rewrite loop for better performance.