Realization of some simple algorithms