first draft of a PHP data analysis library