Implement a basic rate-limiter that restricts Snap API requests based on user ID and IP address.
Process requests in chronological order using a fixed-size sliding window. A request is allowed only when both its user ID and IP address have made fewer than limit allowed requests during the previous window seconds.
The function receives requests as [timestamp, user_id, ip_address] records and returns a Boolean for each request. Rejected requests do not count toward future limits.
def rate_limit(requests, limit, window):