Implementation of many basic graphics algorithms using gtk and cairo in C