Learning C, making handy collections library