Add constructor to initialize from array instead of vector