getSubdirectories()

adding function to search recursively