Something wrong with memory allocation, maybe it's time to pick up a book