Speeding up array