Helper function to add history entries as tab completions

Adds function which makes it easy to add the history as
tab completions.

Usage example:

void completion(const char* buf, linenoiseCompletions* lc) {
    linenoiseAddHistoryCompletions(buf, lc);
}