Split tween to files + more algo functions