Ruby Portfolio Rebalancer