Moved core files to lib, added chessrank solution.