Implementation of fundamental data structures in Python and C