Create Kernel.hs

Some demo function to make sure the dll works correctly