add global array function
treat vector as an array
replace typedbuffer [] implement
refact classes names