Space and energy efficient molecular programming and space efficient text indexing methods for sequence alignment