ZRANGEBYLEX and ZREVRANGEBYLEX implementation.