Implements first non-zero and last non-zero operators in GVector