A sorted set implementation