add reduce method to virtual array