add a bit of documentation for elementary function algorithms