Implemented space repetition algorithm