I'm not sure because I need to check some stuff more but looks like my algorithm is 50 times faster now I migrated it to #Clojure from #Python.
I changed some stuff, but just few points and I didn't make any performance increasing thing yet like memoization and parallelism so...
This is looking great!