Test code

Added a function that creates a red-black tree from a sorted array of the given size and then checks it it was actually a red-black tree.