Simulate bubble elimination and maximize common prefix | Molocoads