Added cost function prototype with unrolling of theta parameters.