Implemented head function
Added tail function
Added init function
Added null and length functions
Added map function