Design of a tool management system in a flexible cell