Add builtin head/tail functions
Add builtin functions to work with q-expressions