Nice. There is a similar real world problem when writing journalling file systems: they need to find the rotation point of the journal, even after a system failure that didn't permit saving that information anywhere well known. The solution is similar too, a binary search through disk blocks looking for the point where the journal index goes down instead of up :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.