diagonal vector finding