Template-assisted preparation of chainlike CaCO3