BKM120 is a newly discovered drug that has been used in other research studies. Information from those other research studies suggests that BKM120 may help to slow or stop the growth of malignant gliomas. The purpose of this study is to see how well BKM120 works in patients with malignant gliomas. Patients on this study will be treated in two groups: patients who are going to receive surgery and those who will not receive surgery. This study is trying to determine how effective BKM120 is in stopping cancer cells from growing. For patients receiving surgery the research will also try to determine if an effective level of BKM120 can penetrate the brain before surgery.