Surface grinder for perfect longitudinal grinding of square pipes, profiles and flat materials in automatic processes