Discrete Manufacturing Custom algorithm used to solve challenges with robotic layer forming and de-tray system