Implement fuzzy matching

Fix #315.