added jdk 8 lambda support
fixed indentation
slight optimization
Merge pull request #45 from cs27x/refactoring/walton_seymour/group1

added jdk 8 lambda support