Add details for heap, queue and graph datatype.  Minor formatting and typo changes

Made some for-loops be displayed on one line
Improve knapsack_rec code to remove typos.
Rename codeh environment back to code
Formatting changes to Probability section