Performance-related refactoring in GOL density calculation.
Moved density calculation to calculateNextStates() method to avoid
having to loop twice through the array.