Needle bending machine