style: whitespace changes
feat(lab3): improve algorithm with memorisation