java stringbuilder append time complexity