Removed extraneous size check
in the compute squared distance function. It was causing type mismatch warnings anyway. It was the last remnant of an array index-based traversal which was replaced by iterator traversal, so if either vector reaches the end, accumulation ends.