add array and graph solutions