Design and Implementation of a Controller for Hexaglide CNC Machine