Text this: An efficient algorithm for the density Turán problem of some unicyclic graphs