C++: Simplifying

Assignments, comparisons and size_t/unsigned