An algorithm for computing theory prime implicates in first order logic. (20th April 2007)