Made getHead & getTail funcs const

Since these functions don't change the variables