Merge pull request #36 from daivanov/master

Replace depth count with loop detector
Released 3.3.0.RELEASE. Merged pull #36