[TASK] Algorithm to fetch nearest available version of a document