Removed casts to unsigned int that are no longer necessary.
Updated vector type to support new size_t members.