added safeHead and safeTail to List
added test for List Functor