added heaps.sql