[doc] wrote algoritm design