working of profile grinding machine