data.c: Make ca_data_parse_offset_score match encoder

Prior to this commit, bytes were assumed to be in reverse order of what was
actually the case.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
query.c: Sort and limit entries before output

For now, a naive quicksort implementation is used.  In the future, the top N
entries should be fitlered with a selection algorithm, and an optimized
quicksort should be used.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
table-backend-writeonce.c: Allow seeking to key in unsorted tables

This is accomplished by running strcmp on all entries in sequence until a match
is found.  Doing a small number of searches this way is slower than sorting the
table, but I plan to implement some mandatory index later anyway.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Merge branch 'master' of https://github.com/mortehu/cantera-table
select.c: Initialize variable to silence stupid compiler warning

Older versions of GCC incorrectly detects uninitialized use of some variables,
albeit with a "may" qualifier.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
Added Pearson and Spearman correlation functions

A small number of test cases were also added.  These functions only operate on
float arrays for now.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>
ca-functions.h: Added missing extern "C" for __cplusplus mode

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>