Add solutions and tests for higerOrder functions