Title: An algorithm for portfolio selection