A novel clustering-based algorithm for solving spatially-constrained robotic task sequencing problems