recursive minimum insertions for a string to be palindormic