Eliminated index field for the Surfer class.

Implemented index through Scala iteration instead.