Improve red-black tree code with consts
Add utility string functions strcmp and strdup