Montrezl Harrell agrees to two-year contract with Philadelphia