Add leap year functionality in calendar.c program