insertAt
insertAt with pattern matching