Now coding Initial State, to find optimal Length of Solution Vector