Dendritic spine dynamics in associative memory: A comprehensive review