On Jan 19, 2012, at 11:18 AM, Serg Gulko wrote: > Hello! > > Same result. OUT OF MEMORY in 8 seconds. When I write the same code in Ruby, I cannot duplicate your results. Hopefully someone who knows C++ can help you. cr