Implemented pivot for three elements
Merge branch 'master' of github.com:em-mo/TDDD56