Added Organism methods getStateCount() and getStateIndex().
Completed initial implementation of Organism class.