Is your "recall probability estimating algorithm" similar to FSRS's retrievability?
https://github.com/open-spaced-repetition/fsrs4anki/wiki/ABC...
If you ever feel like moving beyond the Apple market you might look into https://github.com/vlcn-io/cr-sqlite I've been using it in my own Anki-clone and am very happy with it.