A four page treatment complete with background explanation and step-by-step logic/"code", submitted for your consideration (sorry, but the material was slightly over Hacker News' text field capacity):
https://drive.proton.me/urls/0X5J3DXW6C#xAcSeUQDodXR
Thank you for your time and consideration.