generalized italian search algorithm

- it is now a fully configurable cyclic chain algorithm