some polylog algorithm documentation