Add the ability to write matrix output using format classes

This allows e.g. writing .mat files as directly as output of compare, as well
as writing similarity matrices as images (although this could use some scaling)

Signed-off-by: caotto <ottochar@gmail.com>
Merge pull request #10 from biometrics/format_output

Is this a good idea yes/no?