Vectorized feature calculation