I write width search algorithm