added iterative bruteforce algo.
solved merge