intersperse function

Completed intersperse function