Added check for identical vectors
Added check for identical vectors