grinding machine working principle and construction