Implementation of yuki brute force algorithm: http://instagram.com/p/t6jV1RGN9l