extract_history_parameter function

Extracts a history parameter as a matrix