Medieval history writing and crusading ideology