Added stats.pl

Added stats.pl - some statistics code in Prolog! This code is also
under development.