A comprehensive JavaScript implementation of Min Heap and Max Heap data structures with practical utilities