added method fill(val) which allows filling a vector with a specified value