Corresponding to first release of best-fit-demo v1.

1. Introduced "null-stream" for no output;
2. Better error reporting when too few inputs.
3. Exception handling for Boost::logic_error on sparse matrices;
4. Preferred static class constants to #defines.