Fix supermemo2 algorithm. Add 'view' cmd. line. Add unit tests.