A1 update #1

Fixed all but one bug with the insert_at_rank() function. Still gives
segmentation fault