factored out concatmap tests
updated hermitized Nussinov algorithm