kmeans: fix for handling NaN values (MADLIB-364)
Probabiliy module:
- Changed order of argument: Parameters come last now because they often have reasonable defaults and thus are optional
- Now active and being installed
- Include Fisher F distribution function
- Inlcude Kolmogorov distribution function (from CERN Root project)
- All CDFs now return 0 for -infinity and 1 for +infinity.

Linear regression:
- Adapted studentT_cdf call to change of order of arguments

Abstraction Layer:
- Added macro DECLARE_LIBRARY_EXPORTS

License:
- Added CERN Root
- Re-added LGPL or CERN Root
fix for madlib_435
Merge pull request #125 from renyi533/bug_435

fix for madlib-435 : schema qualify calls to MADlib functions in association rules.
Probability Module:
- Moved SQL files to platform-dependent directory for now

Student-t:
- Fixed indentation in C++ sources
- Fixed problem with order of parameters
- Rewrote tests (should be extended in the future)

Utility module:
- Added small but common utility functions: assert(), relative_error(), check_if_raises_error(), isnan()
Merge pull request #121 from fschopp/prob_integrate
Build system:
- Fixed oversight: No platform-independent modules directory any more. ("make package" failed after latest changes.)
Build system:
- Now uses {PG|GP}_VERSION_NUM instead of {PG|GP}_VERSION if available. (Main benefit: Now builds fine against development builds of Greenplum. Unfortunately, GP_VERSION does not contain the major build version but only "main build dev" by default.)

Madpack:
- When DBMS version cannot be determined because of a parsing error, default to the newest supported version of this DBMS. (Main benefit: Now installs fine on development build of Greenplum. Unfortunately "SELECT version()" does not return a major version number of development builds by default.)
Merge pull request #115 from agorajek/kmeans

kmeans: fix for handling NaN values (MADLIB-364)
Add schema qualifiers to commutator/negator in svec.

MADLIB-470
Fix for MADLIB-459: UnboundLocalError: local variable 'rv' referenced before assignment
Improve the table existence check method.

The original implementation of MADLIB.__table_exist did not consider schema
for temporary tables.  We reimplement this function in C in order to not be
bothered with corner cases such like not only the temporary table but also
double-quoted names and non-ASCII characters, etc.  Add a test case for the
temporary table issue.  The code is currently under decision_tree, but this
particular function should move to somewhere else more general later.

MADLIB-416
Decode the 'Class' column of the result table.

The value of the 'Class' column was the encoded integer, and users needed to
decode it to the original value.  Now we decode this inside the classify
function for more convenience.

MADLIB-434
Fix the out-of-memory issue in decision tree.

As the number of attributes may exceed 1000, the jump array in the
tree_table was consuming unreasonable amout of memory, even if the number of
actual element in the array was relatively small.  Therefore, we change
the representation of the jump array to two integers to reduce this memory
consumption, and at the same time remove __jump_aggr(), an aggregate
function implemented in PL/pgSQL, to optimize the performance.

MADLIB-381, MADBLI-382
Update the comment on the classify function.
Decision Trees: - Fix the non-ordered aggregate version of decision tree display.

In the current version, there is no tree ID in the result tree table.
Therefore, remove the related code.  Now, it can run successfully in
Postgres8.4 and series version.
merge from upstream