Change some function to static
Add Merge and deletemin function