Bug fix: make LSH serializable