fixing fxn to cut a vector based on  weight
Merge branch 'master' of https://github.com/dgrapov/devium