vector: Changed code format style ANSI > K&R

Signed-off-by: Oscar Suro <outercript@gmail.com>
vector: Removed extra vars and minor changes

Signed-off-by: Oscar Suro <outercript@gmail.com>