Merge pull request #17 from levinkov/master

adding support for temprorary lambdas and functors in BFS and DFS