Changed all the foreach loops to for loops in order to prevent garbage collector problems in iOS platform.
Removed use of Linq
Format fix
Merge pull request #59 from sp-bernat-centellas/feature/remove-foreach

Changed "foreach" to "for" loops