helpers.c

Helper functions for Problem Set 3.