finished demo version of intlist code
finished intlist extract_min