use Vector instead of List for improve performance.

`List.:+` is so slow (the cost is O(n)) and copy all elements. Vector is more efficiently.