Similar Items: Bialgebraic Semantics for Logic Programming