refactoring

- cleanup
- better code style complience
* separate floydwarshall and dijkstra into seprate classes