A Comprehensive Computational Model Of Prims Theory For Task-Independent Procedural Learning