Changed a few loops to use prefix incrementation instead of postfix to prevent unnecessary copies.
Changed a few loops to use prefix incrementation instead of postfix to prevent unnecessary copies.