Added support to BFS and DFS for temprorary lambdas and functors
Removed const constraint on temporary functors
Merge pull request #17 from levinkov/master

adding support for temprorary lambdas and functors in BFS and DFS