intelligent fill algorithm - Serbipunk/notes GitHub Wiki