Formulate an answer to this elaborate question: Which movie director, known for making movies with contemporary supernatural plots and surprise endings, co-wrote "Stuart Little" with Greg Brooker?
M. Night Shyamalan