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
Merge branch 'upstream/master'

* upstream/master:
  Format fix
  Removed use of Linq
  Changed all the foreach loops to for loops in order to prevent garbage collector problems in iOS platform.