Minor fixes for next_permutation

Add it to algorithm.hpp.
Remove unnecessary includes.
Change naming so as to prevent conflicts.
Add algorithm and test for prev_permutation
Add algorithm and test for is_permutation
Merge pull request #127 from roshanr95/permutation-algorithms

Permutation algorithms