Added a helper function "lines_of_file" to the module Input_helper.
Added a first working implementation of the portfolio method (a new module Portfolio).