lab_align.m speed up the while

if(scale < max_scale) then continue
speed up 40->5