revised the vector methods
use iterators widely
added subtract operation
checked sinks