added edge case, triangle numbers to library. reimplemented some old problems