Portfolio Optimization using Reinforcement Learning