Algorithmic version for Szemerédi regularity partition