Algorithm Implementation/Statistics/Cohen's kappa

Implemented and tested as described at Wikipedia. This is just a first working draft without any optimization but it works just fine. Comments are for debug purposes only.