function to insert in front (better name than unshift)