New Statistical Methods For Precision Medicine: Variable Selection For Optimal Dynamic Treatment Regimes And Subgroup Detection