working principle of drilling machine