I can related to that as I was paid most of my professional life to be a kitchen programmer and the most complex software I've written had academic or personal motivation... But indeed, this project is a very specific algorithm.
I just released a better version of quickselect with median of medians. I wanted to compare a pure nim implementation with an implemtation that used the nim/C++ interop. Soon I post it here