Added a function to select a subset for given topics with specified n-distance connected neighbors from the loaded corpus and output to a scm file.