Turned logEntry into LMap[index, LSet[RaftLogEntry]].
Update RAFT entries if terms match.