Practice for algorithms implementation