Alghoritms and date structures realization for C#