A program to fit population models