Data Structure: In memory vs disk based search comparison in C