Improved memory usage in taxonomy construction.