MIT assignment 4 Ray casting, fix one bug in Triangle intersection