Fixed a missing line or two in the ellpack sort_ja subroutine and a bug in the permutation routine. Tested with the BFS permutation and permuting ellpack matrices works now; appears as if all functionalities of ellpack matrices are tested and functional.