HASH_get now returns only val but not (key val) pair
modified list get bug
modified list get bug
works for the 2nd example: max