Create documentation on how ranking works when using GeeseDB and explain how ranking functions are constructed.