Added vector util functions.