[heap] convert map to heap

1.Add Xlint:unchecked options for javac
2.Add Map-to-heap convert method