Implemented distance, subcorpora for corpus class