Bacteria that have been genetically engineered to work like computers can solve a range of problems, using a very simple type of artificial intelligence