You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: matchalgorithm.go
    path of file: ./repos/devspace/vendor/github.com/ulikunitz/xz/lzma
    
    the code of the file until where you have to start completion: // Copyright 2014-2019 Ulrich Kunitz. All rights reserved.
// Use 
    
func (a MatchAlgorithm) new(dictCap int) (m matcher, err error) {
	switch a {
	case HashTable4:
		return newHashTable(dictCap, 4)
	case BinaryTree:
		return newBinTree(dictCap)
	}
	return nil, errUnsupportedMatchAlgorithm
}