added NaN test for check_std_vector_index
added doc in code for check_std_vector_index