MB-7656 Add sorted list data structure

Change-Id: I80526c46790d925983d5e300301e323561ced65b
Reviewed-on: http://review.couchbase.org/24339
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>