typed arrays

copied typed array implementation from my last iteration