CNC four or five-axis linkage