Multi Dimensional DS done. (for prob. 18-20)
minor amendments