simple definition of algorithm - Search