Robotham tiling algorithm