CNC flange lathe machine