updated data structures.

I dropped that horrible vector for an array.