how to create a min heap