The same algorithm in all of languages! Did you can improve that ?