free space finding algorithm completed