Added overload for set index allowing vectors