working principle of a milling maxhine