use array as weights, hope to make it faster
directly use ArrayVector for predict function
use ArrayVector to replace Vector, so as to avoid maps