Time Exceed. Use array instead of vector