removed linq usage for compatibility with .net framework 2.0
small performance improvement and better code readability
Merge pull request #29 from galmeida/master

small performance improvement and compatbility with .net 2.0