I had people relate to me, at least once, cases of utterly independent implementations of a function that were byte for byte the same, as found in one court case a friend of mine (now deceased) got pulled into. He had to prove he'd written his code from scratch. But these were pretty simple functions. I don't know if bmap qualifies ...
How could this happen? I don't know, but the court case that long predated SCO. The only conclusion I can reach
is that when enough techniques, ideas, mailling lists, discussions, and documents become part of a shared culture, the code which people create might be the same. A weird parallel evolution of code.