added Timur's implementation
Merge pull request #1 from intspirit/timur

added Timur's implementation