Similar Items: Unification and Logarithmic Space