improved array classes and performance tests