MATHSM: medial axis transform toward high speed machining of pockets