Bio-Inspired Fault-Tolerant Algorithms for Network-on-Chip