convert most of the scan functions in the Optimizer to linq expressions.
add an extension method to check for all types of line endings
ignore the test results folder.
Merge pull request #7 from beannaich/feature/linq-ify

Feature/linq-ify