Mastering Machine Knitting