updated wsum for vectors
move the import of Base.Cartesian upfront
new implementation of wsum
move weighted mean to src/weights.jl (with minor modification)
add weights.jl to runtests.jl
getindex for weight vector
no need for numslices
Merge pull request #70 from JuliaStats/dh/wsum2

New implementation of weighted sum