public override string ToString () {
System.Text.StringBuilder text = new System.Text.StringBuilder ();
text.Append ("\n=== Writing Binary Heap ===\n");
text.Append ("Number of items: ").Append (numberOfItems-2);
text.Append ("Capacity: ").Append (binaryHeap.Length);
text.Append ("\n");
if (numberOfItems > 2) {
WriteBranch (1,1,text);
}
text.Append ("\n\n");
return text.ToString ();
}