 The purpose of this study is to test the safety of sorafenib and vorinostat when given together to see what effects good and bad it has on the patient and their acute myeloid leukemia AML or myelodysplastic syndrome MDS. This study is also being done to find the highest dose of sorafenib and vorinostat that can be given together without causing severe side effects. 