Programming of 5 axis machine tools