update directories and add FirstMissingPositive