Online Algorithms for the Portfolio Selection Problem