Text this: Optimization Algorithm for Cutting Masonry with a Robotic Saw